package com.shr.test;

import java.util.Scanner;

public class Main2 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in) ;
		int n = sc.nextInt();
		int[] array = new int[n];
		for(int i = 0;i<n;i++){
			array[i] = sc.nextInt();
		}
		int count = 0;
		int idx = index1(array);
		while(idx != -1){
			for(int i = idx; i<array.length; i++){
				array[i] = 1-array[i] ;
			}
			count++;
			idx = index1(array);
		}
		if(count % 2 == 1)
			System.out.println("Alice");
		else System.out.println("Bob");
		sc.close();
	}

	private static int index1(int[] array) {
		for(int i = 0;i<array.length;i++){
			if(array[i] == 1)
				return i;
		}
		return -1 ;
	}
}
